package com.ebo.learn_demo.leo_slidecard;

import java.util.ArrayList;
import java.util.List;

public class SlideCardBean {
    private int postition;
    private String url;
    private String name;

    public SlideCardBean(int postition, String url, String name) {
        this.postition = postition;
        this.url = url;
        this.name = name;
    }

    public int getPostition() {
        return postition;
    }

    public SlideCardBean setPostition(int postition) {
        this.postition = postition;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public SlideCardBean setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getName() {
        return name;
    }

    public SlideCardBean setName(String name) {
        this.name = name;
        return this;
    }

    public static ArrayList<SlideCardBean> initDatas() {
        ArrayList<SlideCardBean> datas = new ArrayList<>();
        int i = 1;
        datas.add(new SlideCardBean(i++, "%3DGIF", "XX1号"));
        datas.add(new SlideCardBean(i++, "", "XX2号"));
        datas.add(new SlideCardBean(i++, "%3DGIF", "XX3号"));
        datas.add(new SlideCardBean(i++, "DGIF","XX4号"));
        datas.add(new SlideCardBean(i++, "GIF", "XX5号"));
        datas.add(new SlideCardBean(i++, "https://t7.baidu.com/it/u=3624060246,2658807528&fm=193&f=GIF", "XX6号"));
        datas.add(new SlideCardBean(i++, "https://t7.baidu.com/it/u=2963767354,870442698&fm=193&f=GIF", "XX7号"));
        datas.add(new SlideCardBean(i, "https://tenfei03.cfp.cn/creative/vcg/veer/800/new/VCG41N870873582.jpg", "XX8号"));
        return datas;
    }
}
